﻿using System;
using Common.Entities;
using Infrastructure.Interfaces;

namespace Infrastructure.Services
{
    public class SecurityKeyGenerator : ISecurityKeyGenerator
    {
        public SecurityKey GenerateSecurityKey()
        {
            const int securityKeyLength = 18;
            return new SecurityKey(Guid.NewGuid().ToString("N").Substring(0, securityKeyLength));
        }
    }
}
